<template>
  <!--协议-->
  <u-navbar
    title="会员协议"
    placeholder
    titleStyle="color:black"
    leftIconColor="#000"
    auto-back
  ></u-navbar>
  <view class="zhifuxieyi">
    <u-parse :content="xieYiContent"></u-parse>
  </view>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { getMemberAgreementAPI } from "../../services/me";

const xieYiContent = ref()
onLoad(async () => {
  const res = await getMemberAgreementAPI()
  xieYiContent.value = res.result.contents
})
</script>


<style lang="scss" scoped>
.u-status-bar,
.u-navbar__content {
  background-image: linear-gradient(90deg, #F9C685, #F4A666);
}

.zhifuxieyi {
  padding: 40rpx;
}
</style>
